using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace EventScavenger
{
    public partial class AboutWindow : Form
    {
        public AboutWindow()
        {
            InitializeComponent();
        }

        private void AboutWindow_Load(object sender, EventArgs e)
        {
            this.Text = "About " + Application.ProductName;
            ProductNameValue.Text = Application.ProductName;
            VersionNumber.Text = "Version " + Application.ProductVersion;
            CompanyNameValue.Text = "Provided by " + Application.CompanyName;
            YearNumber.Text = "2014";
        }

        private void AboutWindow_KeyPress(object sender, KeyPressEventArgs e)
        {
            if (e.KeyChar == Char.ConvertFromUtf32(27)[0])
                Close();
        }

        private void panel1_Click(object sender, EventArgs e)
        {
            Close();
        }
    }
}